import Notification from '@ohos.notification';

export default class NotificationUtils {

  static publish(title: string, text: string) {
    var notificationRequest = {
      id: 1,
      content: {
        contentType: Notification.ContentType.NOTIFICATION_CONTENT_BASIC_TEXT,
        normal: {
          title: title,
          text: text,
          additionalText: "test_additionalText"
        }
      }
    }
    Notification.publish(notificationRequest, publishCallback)
  }
}

function publishCallback(err) {
  console.info("==========================>publishCallback=======================>");
}